package org.tabcap.workspace.gui.bar;

import java.awt.BorderLayout;
import java.awt.Dimension;

import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;

public class TCWorkspaceInfoBar extends JPanel
{
	private static final long serialVersionUID = 490949363263548597L;
	
	protected JLabel label;
	public JLabel label() { return label; }
	public void setInfo(String data) { label.setText(data); }

	public TCWorkspaceInfoBar()
	{
		super(new BorderLayout());
		JPanel subPanel = new JPanel(new BorderLayout());
		subPanel.setBorder(new EmptyBorder(3, 3, 3, 3));
		subPanel.setPreferredSize(new Dimension(200, 25));
			label = new JLabel("...");
			subPanel.add(label, BorderLayout.SOUTH);
		add(subPanel, BorderLayout.WEST);
	}
}